package com.tedu.cloud_vehicle_plus.mapper;

import com.tedu.cloud_vehicle_plus.pojo.dto.VehicleListQuery;
import com.tedu.cloud_vehicle_plus.pojo.entity.Vehicle;
import com.tedu.cloud_vehicle_plus.pojo.vo.VehicleVO;
import org.apache.ibatis.annotations.Param;
import org.hibernate.validator.constraints.Range;

import java.util.List;

public interface VehicleMapper {
    int insertVehicle(Vehicle vehicle);

    List<VehicleVO> vehicleList(VehicleListQuery vehicleListQuery);

    int deleteVehicleById(@Param(value = "id") Long id, @Param(value = "userId") Long userId);
}
